From fa88310477dc9612192037253e847dac47e1f79c Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 12 Jul 2007 14:14:29 +0100 Subject: [PATCH] [LIBXC] Fix xc_map_grant_refs() function. This patch fixes the xc_map_grant_refs() function, which would fail because, instead of passing the malloc()-ed ioctl argument pointer to the ioctl, the address of this pointer was being passed instead. Signed-off-by: Derek Murray --- tools/libxc/xc_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_linux.c b/tools/libxc/xc_linux.c index 12adfc92a5..440cb4f0f4 100644 --- a/tools/libxc/xc_linux.c +++ b/tools/libxc/xc_linux.c @@ -456,7 +456,7 @@ void *xc_gnttab_map_grant_refs(int xcg_handle, map->count = count; - if ( ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, &map) ) + if ( ioctl(xcg_handle, IOCTL_GNTDEV_MAP_GRANT_REF, map) ) goto out; addr = mmap(NULL, PAGE_SIZE * count, prot, MAP_SHARED, xcg_handle, -- 2.30.2